package com.jz.community.moduleauthorization.utils;

import android.content.Context;

import com.jz.community.basecomm.base.BaseSP;

/**
 * Created by Tony.Fan on 2018/3/20 17:41
 */
public class SpUtils extends BaseSP {

    public static String FILE_NAME = "community_user_msg";

    private static SpUtils spUtils = new SpUtils();

    public static SpUtils getInstance() {
        return spUtils;
    }

    @Override
    public String getModelPreferenceFIleName() {
        return FILE_NAME;
    }


    public void setLoginType(Context context, String loginType) {
        putString(context, "loginType", loginType);
    }

    public String getLoginType(Context context) {
        return getString(context, "loginType");
    }
}
